import i18n from '@/language/index'

export const t = i18n.global.t

export default function DataPermissionModel(tableName = "", conditions = "",roleId = []) {
    this.tableName = tableName;
    this.conditions = conditions;
    this.roleId = roleId;

    this.rules = {
        roleName: [
            {required: true, message: t('role.1'), trigger: 'blur'},
        ]
    }
}